﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc; 
 
namespace LigerMVC.Common.MVC
{
    public class AppHandleErrorAttribute : HandleErrorAttribute
    { 
        public static readonly log4net.ILog log = log4net.LogManager.GetLogger(typeof(AppHandleErrorAttribute));

        public override void OnException(ExceptionContext filterContext)
        { 
            Exception ex = filterContext.Exception;
            log.Error("系统异常：", ex);
        }
    }
}
